﻿using Mandy.Config.Utility;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Mandy.Config.API.Controllers
{
    public class HomeController : Controller
    {
        public IActionResult Index()
        {
            if (!GlobalContext.IsProduct)
            {
                return Json(GlobalContext.SystemConfig);
            }
            return Content(GlobalContext.WebHostEnvironment.EnvironmentName);
        }
    }
}
